#pragma once

#include <iostream>
#include <string>
#include <fstream>

namespace ns_util
{
    class FileUtill
    {
    public:
    static bool ReadFile(std::string &path,std::string *result){
        std::ifstream in(path,std::ios::in);
        if(!in.is_open()){
           std::cerr<<"open error"<<path<<std::endl;
           return false;
        }
        std::string line;
        while(std::getline(in,line)){
            *result+=line;
        }
        in.close();
        return true;
    };
        
    };
};
